package com.wunu.smartlock1.net.param;

import com.google.gson.annotations.SerializedName;

public class RegistParam {
    @SerializedName("cc")
    private String countryCode = "86";
    private String phone;
    private String password;
    private String tokenId;
    private String nickName;
    private int gender;
    private String avatar;
    private int platform;
    private RegistParam(Builder builder) {
        setCountryCode(builder.countryCode);
        setPhone(builder.phone);
        setPassword(builder.password);

    }

    public String getCountryCode() {
        return countryCode;
    }

    public void setCountryCode(String countryCode) {
        this.countryCode = countryCode;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
    public void setTokenId(String tokenId){this.tokenId = tokenId;}
    public String getTokenId(){return this.tokenId;}
    public void setNickName(String nickName){this.nickName = nickName;}
    public String getNickName(){return this.nickName;}
    public void setGender(int gender){this.gender = gender;}
    public int getGender(){return  this.gender;}
    public void setAvatar(String avatar){this.avatar = avatar;}
    public String getAvatar(){return this.avatar;}
    public void setPlatform(int platform){this.platform = platform;}
    public int getPlatform(){return this.platform;}
    public static final class Builder {
        private String countryCode;
        private String phone;
        private String password;

        private String tokenId;
        private String nickName;
        private int gender;
        private String avatar;
        private int platform;

        public Builder() {
        }

        public Builder tokenId(String val) {
            tokenId = val;
            return this;
        }
        public Builder nickName(String val) {
            nickName = val;
            return this;
        } public Builder gender(int val) {
            gender = val;
            return this;
        } public Builder avatar(String val) {
            avatar = val;
            return this;
        } public Builder platform(int val) {
            platform = val;
            return this;
        }

        public Builder countryCode(String val) {
            countryCode = val;
            return this;
        }

        public Builder phone(String val) {
            phone = val;
            return this;
        }

        public Builder password(String val) {
            password = val;
            return this;
        }

        public RegistParam build() {
            return new RegistParam(this);
        }
    }
}
